package com.example.mapper;

import com.example.entity.Business;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BusinessMapper {

    List<Business> selectAll(Business business);

    void addBusiness(Business business);

    void updateById(Business business);

    Business selectByUsername(String username);

    Business selectByName(String username, String shopname);

    @Select("select * from business where business_id=#{id}")
    Business selectById(Integer id);
}
